package com.probox.wechat.api;

import com.probox.common.core.constant.ServiceNameConstants;
import com.probox.common.core.domain.R;
import com.probox.wechat.api.domain.WechatAuthorizationInfoVo;
import com.probox.wechat.api.factory.RemoteWechatFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(contextId = "remoteWechatService",value = ServiceNameConstants.PLATFORM_MODULES_API,fallbackFactory = RemoteWechatFallbackFactory.class)
public interface RemoteWechatService {
    /**
     * 根据appid查询授权信息
     * @param authorizerAppid
     * @return
     */
    @GetMapping("/remoteWechat/getAuthorizationInfo/{authorizerAppid}")
    public R<WechatAuthorizationInfoVo> getAuthorizationInfo(@PathVariable("authorizerAppid") String authorizerAppid);



}
